find_library(POPT_LIBRARIES popt PATHS ${lib_locations})
find_path(POPT_INCLUDES popt.h PATHS ${include_locations})

include_directories(${FB2LATEX_SOURCE_DIR}/lib ${POPT_INCLUDES})
link_directories(${FB2LATEX_BINARY_DIR}/lib ${POPT_LIBRARIES})



add_executable(fb2latex main.c)
target_link_libraries(fb2latex fb2)